package com.xinqi.modules.course.curriculum.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.course.curriculum.dto.req.CourseCurriculumCreateDTO;
import com.xinqi.modules.course.curriculum.dto.req.CourseCurriculumUpdateDTO;
import com.xinqi.modules.course.curriculum.dto.rsp.CourseCurriculumResultDTO;
import com.xinqi.modules.course.curriculum.domain.CourseCurriculumEntity;
import org.mapstruct.Mapper;

/**
 * 课程表转换
 *
 * @author: yyzhen
 * @date: 2023/09/04
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseCurriculumConvert {
    public abstract CourseCurriculumEntity create(CourseCurriculumCreateDTO s);

    public abstract CourseCurriculumEntity update(CourseCurriculumUpdateDTO s);

    public abstract CourseCurriculumResultDTO convert(CourseCurriculumEntity s);
}
